home *** CD-ROM | disk | FTP | other *** search
/ CDUTIL 13 / CDUTIL #13 Julio 1995.iso / windows / acadcom / acrx / inc / rxdefs.h < prev   
Encoding:
C/C++ Source or Header  |  1995-02-08  |  2.6 KB  |  90 lines

  1. /* Next available MSG number is   1 */
  2. /*
  3.    Copyright (C) 1992, 1993, 1994 by Autodesk, Inc.
  4.  
  5.    Permission to use, copy, modify, and distribute this software in 
  6.    object code form for any purpose and without fee is hereby granted, 
  7.    provided that the above copyright notice appears in all copies and 
  8.    that both that copyright notice and the limited warranty and 
  9.    restricted rights notice below appear in all supporting 
  10.    documentation.
  11.  
  12.    AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.  
  13.    AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF 
  14.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
  15.    DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE 
  16.    UNINTERRUPTED OR ERROR FREE.
  17.  
  18.    Use, duplication, or disclosure by the U.S. Government is subject to 
  19.    restrictions set forth in FAR 52.227-19 (Commercial Computer 
  20.    Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) 
  21.    (Rights in Technical Data and Computer Software), as applicable.
  22.     
  23.    .
  24.  
  25. */
  26.  
  27. /* rxdefs.h -- General type definitions */
  28.  
  29. #ifndef _rxdefs_h_
  30. #define _rxdefs_h_  1
  31.  
  32. #if defined(__cplusplus)
  33. #ifndef AD_ADESK_H
  34. #include "adesk.h"
  35. #endif /* AD_ADESK_H */
  36. #endif /* __cplusplus */
  37.  
  38. #ifndef NULLFCN
  39. #define NULLFCN ((void (*)())0)
  40. #endif
  41.  
  42. /* Adesk::UInt32 maximum value, stolen from <limits.h> */
  43.  
  44. #define ACRX_ULONG_MAX 0xFFFFFFFF
  45.  
  46. /* ASCII/Text constants
  47.  
  48.    Need to verify that Unicode supports this. */
  49.  
  50. #define ACRX_ASCII_MAX 255                 /* Same as UCHAR_MAX in <limits.h> */
  51. #define ACRX_EOS 0                         /* End of String Indicator */
  52.  
  53. #if defined(__cplusplus)
  54. /* AcRx:  typedef and enum namespace scoping struct. */
  55.  
  56. struct AcRx {
  57.  
  58.     typedef void (*FcnPtr) ();
  59.  
  60.     enum     DictIterType { kDictSorted   = 0,
  61.                             kDictCollated = 1 };
  62.  
  63.     enum     Ordering     { kLessThan     = -1,
  64.                 kEqual          = 0,
  65.                 kGreaterThan  = 1,
  66.                 kNotOrderable = 2 };
  67.  
  68.     enum     AppMsgCode   { kNullMsg    = 0,
  69.                 kInitAppMsg    = 1,
  70.                 kUnloadAppMsg    = 2,
  71.                 kLoadADSMsg    = 3,
  72.                 kUnloadADSMsg    = 4,
  73.                                 kInvkSubrMsg    = 5,
  74.                                 kCfgMsg         = 6,
  75.                                 kEndMsg         = 7,
  76.                                 kQuitMsg        = 8,
  77.                                 kSaveMsg        = 9
  78.                 /* TTE/BILL: Add
  79.                    more codes here */ };
  80.  
  81.     enum     AppRetCode   { kRetOK          = 0,
  82.                 kRetError    = 3
  83.                 /* TTE/BILL: Add
  84.                    more codes here */  };
  85.                 
  86. };
  87. #endif  /* __cplusplus */
  88.  
  89. #endif /* _rxdefs_h */
  90.